package com.jdls.web;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 嘉德罗斯
 * @date 2021/9/17
 */
@RestController
@RequestMapping("/book")
public class BookWeb {
    @GetMapping("{id}")
    public String findById(@PathVariable int id){
        System.out.println(id);
        return "执行"+id;
    }
}
